package com.qimencloud.api.scenehu3cgwt0tc.response;

import com.taobao.api.TaobaoResponse;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * TOP API(QimenCloud): wdt.stockout.order.query.trade response.
 *
 * @author top auto create
 * @since 1.0, null
 */
public class WdtStockPdQueryTradeResponse extends TaobaoResponse {

    private static final long serialVersionUID = 4439186733476668452L;

    /**
     * 错误码
     */
    @ApiField("errorcode")
    private Long errorcode;

    /**
     * 错误描述
     */
    @ApiField("message")
    private String message;

    /**
     * 出库单详情
     */
    @ApiListField("pd_list")
    @ApiField("pd_list")
    private List<Array> pd_list;

    /**
     * 数据条数
     */
    @ApiField("total_count")
    private Long totalCount;


    public void setErrorcode(Long errorcode) {
        this.errorcode = errorcode;
    }

    public Long getErrorcode() {
        return this.errorcode;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessage() {
        return this.message;
    }

    public List<Array> getPd_list() {
        return pd_list;
    }

    public void setPd_list(List<Array> pd_list) {
        this.pd_list = pd_list;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    public Long getTotalCount() {
        return this.totalCount;
    }

    /**
     * Sku详情节点
     *
     * @author top auto create
     * @since 1.0, null
     */

    @NoArgsConstructor
    @Data
    public static class Array {


        private String pd_id;
        private String pd_no;
        private String outer_no;
        private String mode;
        private String type;
        private String remark;
        private String modified;
        private String created;
        private String warehouse_no;
        private String operator_name;
        @ApiListField("details_list")
        @ApiField("details_list")
        private List<DetailsListBean> details_list = new ArrayList<>();

        @NoArgsConstructor
        @Data
        public static class DetailsListBean {
            private String rec_id;
            private String pd_id;
            private String old_num;
            private String input_num;
            private String goods_name;
            private String goods_no;
            private String new_num;
            private String cost_price;
            private String remark;
            private String spec_id;
            private String spec_no;
            private String spec_code;
            private String spec_name;
            private String barcode;
            private String brand_name;
            private Object unit_name;
            private Object goods_unit;
            private String batch_no;
        }
    }


}
